//
//  WeightRecordCell.h
//  WeightMaster
//
//  Created by sungeo on 15/8/20.
//  Copyright (c) 2015年 buddysoft. All rights reserved.
//

#import <UIKit/UIKit.h>

extern const void * AssociatedCell;

@class WMWeight;

@interface WeightRecordCell : UICollectionViewCell

@property (nonatomic, weak) WMWeight * weight;          // 体重对象
@property (nonatomic) float ratio;                      // 某个时间段内的体重区间
@property (nonatomic, strong) UIImage * moodImage;      // 没有照片时显示的情绪照片
@property (nonatomic) BOOL shouldShowDate;

@property (nonatomic, strong) UILabel * dateLabel;
@property (nonatomic, strong) UIView * valueView;
@property (nonatomic, strong) UILabel * valueLabel;
@property (nonatomic, strong) UIImageView * profileImageView;


- (instancetype)initWithWeight:(WMWeight *)weight ratio:(float)ratio;

- (void)refreshWithSelectedState:(BOOL)selected;

- (void)addProfileImageClickedListener:(id)listener action:(SEL)selector;

- (void)changeSelectedState:(BOOL)selected;

@end
